package com.qidian.qc.mapper;

import com.qidian.mes.pojo.qc.QcDefect;

import java.util.List;

/**
 * @Author 53邹李萍
 * @Company 起点编程
 * @Time 2023/10/26 15:10
 * @Description
 */
public interface QcDefectMapper {
    //分页查询
    List<QcDefect> list(QcDefect qcDefect);
    //根据name查询
    QcDefect getByDefectName(String defectName);
    //根据检测项类型查询
    QcDefect getByIndexType(String indexType);
    //根据缺陷等级查询
    QcDefect getByDefectLevel(String defectLevel);
    //根据缺陷编码查询
    QcDefect getByDefectCode(String defectCode);
    //新增
    int save(QcDefect qcDefect);
    //编辑
    int update(QcDefect qcDefect);

    //删除
    int deleteByDefectCode(String defectCode);


    //批量删除
    int deleteByDefectCodes(String[] defectCodes);

}
